﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DrawingColor = System.Drawing.Color;
using WpfColor = System.Windows.Media.Color;

namespace ComputationVisualizer
{
    class ColorConverter
    {
        public DrawingColor WpfColorToDrawingColor(WpfColor source)
        {
            return DrawingColor.FromArgb(source.A, source.R, source.G, source.B);
        }
        public WpfColor DrawingColorToWpfColor(DrawingColor source)
        {
            return new WpfColor {A = source.A, B = source.B, R = source.R, G = source.G};
        }
    }
}
